home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- SoundsNA.js
-
- Encarta Virtual Globe 1999
-
- (c) Copyright Microsoft Corporation 1998
-
- Populates the sound table for North America. The sound table is comprised
- of a Lat,Long location where the sound is associated with, and an index
- number into the Audio Man control which has the path to the actual sound
- file. See FlightSounds.xls for the table of sound file and Lat,Long
- matchings.
-
- Also includes fusion related variables declarations and functions
- because the number of fusion nodes vary between Fly files.
-
- This file is to be included by FlyNAm.htm
-
- Owner = WHsu
- *****************************************************************************/
- var g_numFusionSrcNodes = 15;
- var g_FusionSrcNodes = new Array(g_numFusionSrcNodes); // node object for Fusion URLWav
- var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes); // if set, node loaded
-
- function LoadFusionMedia()
- {
- var i;
- for ( i=0; i < g_numFusionSrcNodes; i++ )
- {
- g_fFusionSrcNodeLoaded[i] = false;
- }
- g_FusionSrcNodes[0] = MediaGraph.Nodes("FusionSrcA");
- g_FusionSrcNodes[1] = MediaGraph.Nodes("FusionSrcB");
- g_FusionSrcNodes[2] = MediaGraph.Nodes("FusionSrcC");
- g_FusionSrcNodes[3] = MediaGraph.Nodes("FusionSrcD");
- g_FusionSrcNodes[4] = MediaGraph.Nodes("FusionSrcE");
- g_FusionSrcNodes[5] = MediaGraph.Nodes("FusionSrcF");
- g_FusionSrcNodes[6] = MediaGraph.Nodes("FusionSrcG");
- g_FusionSrcNodes[7] = MediaGraph.Nodes("FusionSrcH");
- g_FusionSrcNodes[8] = MediaGraph.Nodes("FusionSrcI");
- g_FusionSrcNodes[9] = MediaGraph.Nodes("FusionSrcL"); // no J or K
- g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcM");
- g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcN");
- g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcO");
- g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcP");
- g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcQ");
-
- MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
- }
-
- g_SoundTable[g_Continent_NA] = new Array(30);
-
- g_SoundTable[g_Continent_NA][0] = new Array(3);
- g_SoundTable[g_Continent_NA][1] = new Array(3);
- g_SoundTable[g_Continent_NA][2] = new Array(3);
- g_SoundTable[g_Continent_NA][3] = new Array(3);
- g_SoundTable[g_Continent_NA][4] = new Array(3);
- g_SoundTable[g_Continent_NA][5] = new Array(3);
- g_SoundTable[g_Continent_NA][6] = new Array(3);
- g_SoundTable[g_Continent_NA][7] = new Array(3);
- g_SoundTable[g_Continent_NA][8] = new Array(3);
- g_SoundTable[g_Continent_NA][9] = new Array(3);
- g_SoundTable[g_Continent_NA][10] = new Array(3);
- g_SoundTable[g_Continent_NA][11] = new Array(3);
- g_SoundTable[g_Continent_NA][12] = new Array(3);
- g_SoundTable[g_Continent_NA][13] = new Array(3);
- g_SoundTable[g_Continent_NA][14] = new Array(3);
- g_SoundTable[g_Continent_NA][15] = new Array(3);
- g_SoundTable[g_Continent_NA][16] = new Array(3);
- g_SoundTable[g_Continent_NA][17] = new Array(3);
- g_SoundTable[g_Continent_NA][18] = new Array(3);
- g_SoundTable[g_Continent_NA][19] = new Array(3);
- g_SoundTable[g_Continent_NA][20] = new Array(3);
- g_SoundTable[g_Continent_NA][21] = new Array(3);
- g_SoundTable[g_Continent_NA][22] = new Array(3);
- g_SoundTable[g_Continent_NA][23] = new Array(3);
- g_SoundTable[g_Continent_NA][24] = new Array(3);
- g_SoundTable[g_Continent_NA][25] = new Array(3);
- g_SoundTable[g_Continent_NA][26] = new Array(3);
- g_SoundTable[g_Continent_NA][27] = new Array(3);
- g_SoundTable[g_Continent_NA][28] = new Array(3);
- g_SoundTable[g_Continent_NA][29] = new Array(3);
-
-
- g_SoundTable[g_Continent_NA][0][g_indexLat] = 16;
- g_SoundTable[g_Continent_NA][0][g_indexLong] = -88;
- g_SoundTable[g_Continent_NA][0][g_indexSound] = 1; // F172398A 16 -88 172398 Belize
-
- g_SoundTable[g_Continent_NA][1][g_indexLat] = 65;
- g_SoundTable[g_Continent_NA][1][g_indexLong] = -110;
- g_SoundTable[g_Continent_NA][1][g_indexSound] = 2; // F172418A 65 -110 172418 Canada (Inuit)
-
- g_SoundTable[g_Continent_NA][2][g_indexLat] = 50;
- g_SoundTable[g_Continent_NA][2][g_indexLong] = -74;
- g_SoundTable[g_Continent_NA][2][g_indexSound] = 3; // F172419A 50 -74 172419 Canada (Quebec)
-
- g_SoundTable[g_Continent_NA][3][g_indexLat] = 5;
- g_SoundTable[g_Continent_NA][3][g_indexLong] = -74;
- g_SoundTable[g_Continent_NA][3][g_indexSound] = 4; // F172426A 5 -74 172426 Colombia (+)
-
- g_SoundTable[g_Continent_NA][4][g_indexLat] = 5;
- g_SoundTable[g_Continent_NA][4][g_indexLong] = -74;
- g_SoundTable[g_Continent_NA][4][g_indexSound] = 5; // F172427A 5 -74 172427 Colombia (+)
-
- g_SoundTable[g_Continent_NA][5][g_indexLat] = 5;
- g_SoundTable[g_Continent_NA][5][g_indexLong] = -74;
- g_SoundTable[g_Continent_NA][5][g_indexSound] = 6; // F172428A 5 -74 172428 Colombia (+)
-
- g_SoundTable[g_Continent_NA][6][g_indexLat] = 18;
- g_SoundTable[g_Continent_NA][6][g_indexLong] = -71;
- g_SoundTable[g_Continent_NA][6][g_indexSound] = 7; // F172436A 18 -71 172436 Dominican Republic
-
- g_SoundTable[g_Continent_NA][7][g_indexLat] = 19;
- g_SoundTable[g_Continent_NA][7][g_indexLong] = -73;
- g_SoundTable[g_Continent_NA][7][g_indexSound] = 8; // F172460A 19 -73 172460 Haiti
-
- g_SoundTable[g_Continent_NA][8][g_indexLat] = 5;
- g_SoundTable[g_Continent_NA][8][g_indexLong] = -62;
- g_SoundTable[g_Continent_NA][8][g_indexSound] = 9; // F172513A 5 -62 172513 Martenique
-
- g_SoundTable[g_Continent_NA][9][g_indexLat] = 24;
- g_SoundTable[g_Continent_NA][9][g_indexLong] = -103;
- g_SoundTable[g_Continent_NA][9][g_indexSound] = 10; // F172517A 24 -103 172517 Mexico
-
- g_SoundTable[g_Continent_NA][10][g_indexLat] = 4;
- g_SoundTable[g_Continent_NA][10][g_indexLong] = -61;
- g_SoundTable[g_Continent_NA][10][g_indexSound] = 11; // F172571A 4 -61 172571 Saint Lucia-
-
- g_SoundTable[g_Continent_NA][11][g_indexLat] = 21;
- g_SoundTable[g_Continent_NA][11][g_indexLong] = -158;
- g_SoundTable[g_Continent_NA][11][g_indexSound] = 12; // F172597A 21 -158 172597 Hawaii (++)
-
- g_SoundTable[g_Continent_NA][12][g_indexLat] = 30;
- g_SoundTable[g_Continent_NA][12][g_indexLong] = -92;
- g_SoundTable[g_Continent_NA][12][g_indexSound] = 13; // F172598A 30 -92 172598 U.S. (Cajun)
-
- g_SoundTable[g_Continent_NA][13][g_indexLat] = 30;
- g_SoundTable[g_Continent_NA][13][g_indexLong] = -90;
- g_SoundTable[g_Continent_NA][13][g_indexSound] = 14; // F172599A 30 -90 172599 U.S. (New Orleans)
-
- g_SoundTable[g_Continent_NA][14][g_indexLat] = 35;
- g_SoundTable[g_Continent_NA][14][g_indexLong] = -85;
- g_SoundTable[g_Continent_NA][14][g_indexSound] = 15; // F172600A 35 -85 172600 U.S. (bluegrass)
-
- g_SoundTable[g_Continent_NA][15][g_indexLat] = 33;
- g_SoundTable[g_Continent_NA][15][g_indexLong] = -106;
- g_SoundTable[g_Continent_NA][15][g_indexSound] = 16; // F172602A 33 -106 172602 U.S. (Conjunto)
-
- g_SoundTable[g_Continent_NA][16][g_indexLat] = 38;
- g_SoundTable[g_Continent_NA][16][g_indexLong] = -95;
- g_SoundTable[g_Continent_NA][16][g_indexSound] = 17; // F172603A 38 -95 172603 U.S. (Native Am.)
-
- g_SoundTable[g_Continent_NA][17][g_indexLat] = 6;
- g_SoundTable[g_Continent_NA][17][g_indexLong] = -65;
- g_SoundTable[g_Continent_NA][17][g_indexSound] = 18; // F172604A 6 -65 172604 Venezuela- (+)
-
- g_SoundTable[g_Continent_NA][18][g_indexLat] = 18;
- g_SoundTable[g_Continent_NA][18][g_indexLong] = -64;
- g_SoundTable[g_Continent_NA][18][g_indexSound] = 19; // F172605A 18 -64 172605 U.S. Caribbean
-
- g_SoundTable[g_Continent_NA][19][g_indexLat] = 24;
- g_SoundTable[g_Continent_NA][19][g_indexLong] = -103;
- g_SoundTable[g_Continent_NA][19][g_indexSound] = 20; // F172935A 24 -103 172935 Mexico (mariachi)
-
- g_SoundTable[g_Continent_NA][20][g_indexLat] = 42;
- g_SoundTable[g_Continent_NA][20][g_indexLong] = -88;
- g_SoundTable[g_Continent_NA][20][g_indexSound] = 21; // F172966A 42 -88 172966 U.S. Chicago blues
-
- g_SoundTable[g_Continent_NA][21][g_indexLat] = 48;
- g_SoundTable[g_Continent_NA][21][g_indexLong] = -123;
- g_SoundTable[g_Continent_NA][21][g_indexSound] = 22; // F172967A 48 -123 172967 U.S. grunge rock
-
- g_SoundTable[g_Continent_NA][22][g_indexLat] = 6;
- g_SoundTable[g_Continent_NA][22][g_indexLong] = -65;
- g_SoundTable[g_Continent_NA][22][g_indexSound] = 23; // F172976A 6 -65 172976 Venezuela (+)
-
- g_SoundTable[g_Continent_NA][23][g_indexLat] = 12;
- g_SoundTable[g_Continent_NA][23][g_indexLong] = -86;
- g_SoundTable[g_Continent_NA][23][g_indexSound] = 24; // F173219A 12 -86 173219 Nicaragua (+)
-
- g_SoundTable[g_Continent_NA][24][g_indexLat] = 55;
- g_SoundTable[g_Continent_NA][24][g_indexLong] = -102;
- g_SoundTable[g_Continent_NA][24][g_indexSound] = 25; // F173236A 55 -102 173236 Canada
-
- g_SoundTable[g_Continent_NA][25][g_indexLat] = 18;
- g_SoundTable[g_Continent_NA][25][g_indexLong] = -77;
- g_SoundTable[g_Continent_NA][25][g_indexSound] = 26; // F173238A 18 -77 173238 Jamaica
-
- g_SoundTable[g_Continent_NA][26][g_indexLat] = 22;
- g_SoundTable[g_Continent_NA][26][g_indexLong] = -78;
- g_SoundTable[g_Continent_NA][26][g_indexSound] = 27; // F547303A 22 -78 547303 Cuba
-
- g_SoundTable[g_Continent_NA][27][g_indexLat] = 34;
- g_SoundTable[g_Continent_NA][27][g_indexLong] = -97;
- g_SoundTable[g_Continent_NA][27][g_indexSound] = 28; // F555381A 34 -97 555381 U.S. (western swing)
-
- g_SoundTable[g_Continent_NA][28][g_indexLat] = 45;
- g_SoundTable[g_Continent_NA][28][g_indexLong] = -105;
- g_SoundTable[g_Continent_NA][28][g_indexSound] = 29; // F557070A 45 -105 557070 U.S. (rock music)
-
- g_SoundTable[g_Continent_NA][29][g_indexLat] = 62;
- g_SoundTable[g_Continent_NA][29][g_indexLong] = -150;
- g_SoundTable[g_Continent_NA][29][g_indexSound] = 30; // F557070A 62 -150 557070 U.S. (rock music)
-